var baseUrl ="http://47.108.197.28:3000"
function http({
    url
}){
    return new Promise((resolve, reject) => {
       wx.request({
            url:baseUrl+url,
            header: {'content-type':'application/json'},
            method: 'GET',
            dataType: 'json',
            responseType: 'text',
            success: (result)=>{
                resolve(result)
            },
            fail: (err)=>{
                reject(err);
            }
        });
    })
}

function getMusicHttp(){
    return http({url:"/top/playlist"})
}
function getMvHttp(){
    return http({url:"/mv/first"})
}
module.export ={
    getMusicHttp,
    getMvHttp
}